<template>
  <div>
    <h2>state值：{{ name }}</h2>
    <h2>state值：{{ store.counterPar }}</h2>
    <h2>state值：{{ newStore }}</h2>
  </div>
</template>

<script setup>
// 引入store
import {useStore} from '../store/'
//创建store对象
const store = useStore()
//结构name
const {name} = store
//调用actions
const newStore = store.changeCounter(10)
</script>


